package AnimalTest;

import AnimalTest.Dog;

public class HassiKi extends Dog {

    public HassiKi() {
    }

    public HassiKi(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat(){
        System.out.println("一只叫做"+super.getName()+","+super.getAge()+"岁的哈士奇在吃骨头，边吃边拆家");
    }

    @Override
    public String toString() {
        return "名字是"+getName()+",年龄为"+getAge()+"岁的哈士奇";
    }
}
